
package com.weiqiao.mall.service;


import com.weiqiao.mall.domain.FreightEntity;
import com.weiqiao.mall.service.vo.AddressVO;
import com.weiqiao.mall.service.vo.FreightVO;
import org.bson.conversions.Bson;

import java.util.List;
import java.util.Map;

public interface IFreightService extends IBaseWeiXinService {

    /**
     * 新增或修改服务信息
     *
     * @param freight
     * @return bool
     */
    boolean updateFreightService(FreightEntity freight);

    /**
     * 获取运费模板信息
     *
     * @param filter 条件
     * @return entity
     */
    FreightEntity getFreightInf(Bson filter);

    /**
     * 查询模板
     *
     * @param company_id
     * @return bson
     */
    List<FreightEntity> findFreightByBson(int company_id, Bson bson);

    /**
     * 删除模板
     *
     * @param freightVO
     * @return
     */
    boolean delFreight(FreightVO freightVO);

    /**
     * 获取模板
     *
     * @param address
     * @return
     */
    Map getFreightList(AddressVO address);
}
